#!/usr/bin/env python
# -*- coding:utf-8 -*-
'''批量创建立方体

History:
    2018-03-17 YY 创建
'''

import bpy

for i in range(5):
    for j in range(5):
        for k in range(5):
            bpy.ops.mesh.primitive_cube_add(radius = 0.25, location = (i, j, k))